package ooday05;

public class EnumDemo {
    public static void main(String[] args) {


        SeaSon s= SeaSon.SPRING;
        System.out.println(s.getSeasonName()+s.getSeasonDesc());

        switch (s){
            case SPRING:
                System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
                break;
            case SUMER:
                System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
                break;
            case AUTUMN:
                System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
                break;
            case WINER:
                System.out.println(s.getSeasonName()+","+s.getSeasonDesc());
                break;
        }


        SeaSon [] seaSons=SeaSon.values();
        for (int i = 0; i <seaSons.length ; i++) {
            System.out.println(seaSons[i]);
            System.out.println(seaSons[i].getSeasonName());
            System.out.println(seaSons[i].getSeasonDesc());
        }

    }
}
